| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shadows Function Read( _ ByVal buffer() As Byte _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MimeAttachmentStream Dim buffer() As Byte Dim value As Integer value = instance.Read(buffer) | |
| C++/CLI | |
|---|---|
public: new int Read( array<byte>^ buffer ) | |
Parameters
- buffer
- The storage location for the received data.
Return Value
The total number of bytes read into the buffer.| Exception | Description |
|---|---|
| System.IO.IOException | Thrown when the Stream is not readable. |
| System.ArgumentNullException | Thrown when the buffer or callback is null. |
This is a convenience method for all derived classes, calling Read(buffer,0, buffer.Length) on the stream.
Target Platforms: Microsoft .NET Framework 2.0